Remove an unused function
authorMatthias Clasen <mclasen@redhat.com>
Sat, 31 Oct 2020 03:32:30 +0000 (23:32 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 31 Oct 2020 03:32:30 +0000 (23:32 -0400)
The only property of GtkStringObject is readonly since
commit fb14f50ec1a8fe9b9024e, so we don't need a
set_property implementation.

gtk/gtkstringlist.c

index 5c04301c70ac378c1e2fa1fe2c7a0d3a2cffb3db..18474b013e3e8a8786e12bdfea6503e076c7979a 100644 (file)
@@ -94,27 +94,6 @@ gtk_string_object_finalize (GObject *object)
   G_OBJECT_CLASS (gtk_string_object_parent_class)->finalize (object);
 }
 
-static void
-gtk_string_object_set_property (GObject      *object,
-                                guint         property_id,
-                                const GValue *value,
-                                GParamSpec   *pspec)
-{
-  GtkStringObject *self = GTK_STRING_OBJECT (object);
-
-  switch (property_id)
-    {
-    case PROP_STRING:
-      g_free (self->string);
-      self->string = g_value_dup_string (value);
-      break;
-
-    default:
-      G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
-      break;
-    }
-}
-
 static void
 gtk_string_object_get_property (GObject    *object,
                                 guint       property_id,
@@ -142,7 +121,6 @@ gtk_string_object_class_init (GtkStringObjectClass *class)
   GParamSpec *pspec;
 
   object_class->finalize = gtk_string_object_finalize;
-  object_class->set_property = gtk_string_object_set_property;
   object_class->get_property = gtk_string_object_get_property;
 
   pspec = g_param_spec_string ("string", "String", "String",